<script setup lang="ts">
import { ref } from 'vue';
defineProps({
    props1: {
      type: String,
      required: true,
    },
});
const count = ref(0);
</script>

<template>
  <h4>props1 {{ props1 }}</h4>
  <div>插槽</div>
  <slot />
  <div>count: {{ count }}</div>
  <button @click="count++">count+</button>
  <p class="read-the-docs">Click on the Vite and Vue logos to learn more</p>
</template>

<style scoped>
.read-the-docs {
  color: #888;
}
</style>
